package com.taotao.search.request;

import lombok.Data;

import java.util.List;


/**
 *
 * keyword=小米&
 * sort=saleCount_desc/asc&
 * hasStock=0/1&
 * skuPrice=400_1600&
 * brandId=1&
 * catalog3Id=1&
 * attrs=1_3G:4G:5G&
 * attrs=2_晓龙845
 *
 *
 */
@Data
public class SearchParam {

    /**
     * 页面传递过来的全文匹配关键字
     */
    private String keyword;

    /**
     * 品牌id,可以多选
     * brandId=1&brandId=2
     */
    private List<Long> brandId;

    /**
     * 三级分类id
     */
    private Long catalog3Id;

    /**
     * 排序条件
     *  sort=saleCount_asc/desc 倒序
     *  sort=skuPrice_asc/desc 根据价格
     *  sort=hotScore_asc/desc
     */
    private String sort;

    /**
     * 很多过滤条件
     * hasStock(是否有货) skuPrice价格区间 brandId catalog3Id attrs
     * hasStock 0/1
     * skuPrice=1_500 500_ _500
     * brandId = 1  品牌id
     * attrs1_5寸_6寸  手机大小
     * // 0 无库存 1有库存
     */
    private boolean hasStock;

    /**
     * 价格区间查询
     * 400_1600
     */
    private String skuPrice;

    /**
     * 按照属性进行筛选
     * attrs=1_3G:4G:5G&attrs=2_晓龙845
     */
    private List<String> attrs;

    /**
     * 页码
     */
    private Integer pageNum = 1;



}
